package com.itheima.assigningoperator;

public class assigningoperatorDemo1 {
    public static void main(String[] args) {
        //+=
        int a=10;
        int b=20;
        a +=b;
        System.out.println(a);

        //细节：+= -= *= /= %=包含强制转换
        short s=1;
        s+=1;//相当于s = (short)(s+1)
        System.out.println(s);//2
    }
}
